﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Bixas.Tangibilis;
using Bixas.Tangibilis.Controls;
using Bixas.Tangibilis.Input;

namespace WpfTest
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : TouchWindow
    {
        public Window1()
        {
            InitializeComponent();
            this.test.InputBindings.Add(new InputBinding(new RoutedCommand("Test", typeof(TouchCheckBox)), new TouchCursorGesture()));
            this.scatter.ItemsSource = System.IO.Directory.GetFiles(@"C:\Users\Public\Pictures\Sample Pictures", "*.jpg");
        }

        private void TouchButton_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("toto");
        }

        private void toto_MouseMove(object sender, MouseEventArgs e)
        {

        }

        private void toto_MouseMove_1(object sender, MouseEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine(e.GetPosition(toto).X);
        }

    }
}
